package stud.mpgame.flash.net.userobject;

import stud.mpgame.network.UserObject;
import stud.mpgame.network.Message;

import flash.utils.IDataOutput;

/**
 * ...
 * @author pavel[f.pavel91@gmail.com]
 */

class LoginUserObject extends UserObject {
	
	private var name:String;
    private var userID:Int;

	public function new(name:String, userID:Int) {
		super();
		this.name = name;
		this.userID = userID;
	}
    
    public override function writeExternal(output:IDataOutput, message:Message):Void {
		output.writeUTF(name);
		output.writeInt(userID);
    }    
	
}